import { Allow } from 'class-validator'
import i18n from '@/i18n'
import { ApiProperty } from '@nestjs/swagger'
import { ActionSocketMessage } from '../entity/action-socket-message'

export class ActionSocketSendDto<
  T = any,
  A extends string = string,
  C extends string = string,
> extends ActionSocketMessage<T, A, C> {
  @ApiProperty({ description: i18n.t('lhy-common.dto.action-socket-send.12153276-0') })
  @Allow()
  userToken?: string

  @ApiProperty({ description: i18n.t('lhy-common.dto.action-socket-send.12153276-1') })
  @Allow()
  uniqueId?: string
}
